<?php
session_start();
define ( 'main' , TRUE );

// Load Functions
$gamename = "test";
$gameid = "1";

$race_table = 's_01_r_01_race_laps';
$race_updatetable = 's_01_r_01_race_updates';

require_once("include/config.php");
require_once("include/func/mysql.php");
require_once("include/func/global.php");
require_once("include/func/game.php");

goodcookie();
db_connect();


#############################

// Template Engine
require('../libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 120;
#############################



// Startseite
if(isset($_SESSION[userlogin])) {
$design_dir = "templates/designs/ingame/";
} else {
$design_dir = "templates/designs/ingame/";
}


#############################


require_once($design_dir . 'design.php');
db_close();



?>